<% remote_form_for @formacion,:complete =>"$.colorbox.close()", :condition => '$(this).valid()', :html => {:class => "tabular"},  :builder => UniformBuilder do |f| %>
  <%= f.error_messages %>
  <div class="box">
    <%= f.text_field :titulo_obtenido, :label => "T&iacute;tulo".html_safe,:class => :required%>
    <%= f.text_field :lugar ,:label=>'Instituci&oacute;n'.html_safe,:class => :required%>
    <p>
      <%= label_tag(:anho_inicio, 'A&ntilde;o Inicio') %>
      <%= select_year Date.today,:start_year=>1960,:end_year => Date.today.year ,:prefix => :formacion,:field_name => :anho_inicio %>
    </p>
    <p>
      <%= label(:anho_fin, 'A&ntilde;o Fin') %>
      <%= select_year Date.today,:start_year=>1960,:end_year => Date.today.year,:prefix => :formacion,:field_name => :anho_fin %>
    </p>
    <%= f.hidden_field :usuario_id %>
    <%= f.select :nivel, Formacion::NIVELES%>
  </div>
  <%= f.submit "Guardar" %>
<% end %>
<%= validate_forms %>